package com.wisdytech.linkdcs.tool.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhanghailin
 * @since 2018-06-11
 */
@TableName("TT_EQ_TOOL_REPLACE_RECORD")
public class ToolReplaceRecord extends Model<ToolReplaceRecord> {

    private static final long serialVersionUID = 1L;

    @TableId("PK_ID")
    private String pkId;

    @TableField("EQUIP_CODE")
    private String equipCode;

    @TableField("ORIGIN_TOOL_CODE")
    private String originToolCode;

    @TableField("REPLACE_TOOL_CODE")
    private String replaceToolCode;

    @TableField("REPLACE_USER")
    private String replaceUser;

    @TableField("REPLACE_REASON")
    private String replaceReason;

    @TableField("REPLACE_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date replaceDate;

    @TableField("DEL_FLAG")
    private String delFlag;

    @TableField("CREATE_USER")
    private String createUser;

    @TableField("CREATE_DATE")
    private Date createDate;

    @TableField("UPDATE_USER")
    private String updateUser;

    @TableField("UPDATE_DATE")
    private Date updateDate;

    @TableField("REMARK")
    private String remark;

    @TableField("QUANTITY")
    private Double quantity;

    @TableField("LIFE_CYCLE")
    private Integer lifeCycle;

    @TableField(exist = false)
    private String equipName;

    @TableField(exist = false)
    private String toolName;

    @TableField(exist = false)
    private String toolModel;

    @TableField("EQUIP_POSITION")
    private String equipPosition;

    @TableField(exist = false)
    private String equipPositionName;

    public String getEquipPositionName() {
        return equipPositionName;
    }

    public void setEquipPositionName(String equipPositionName) {
        this.equipPositionName = equipPositionName;
    }

    public String getEquipPosition() {
        return equipPosition;
    }

    public void setEquipPosition(String equipPosition) {
        this.equipPosition = equipPosition;
    }

    public Double getQuantity() {
        return quantity;
    }

    public void setQuantity(Double quantity) {
        this.quantity = quantity;
    }

    public Integer getLifeCycle() {
        return lifeCycle;
    }

    public void setLifeCycle(Integer lifeCycle) {
        this.lifeCycle = lifeCycle;
    }

    public String getPkId() {
        return pkId;
    }

    public void setPkId(String pkId) {
        this.pkId = pkId;
    }

    public String getEquipCode() {
        return equipCode;
    }

    public void setEquipCode(String equipCode) {
        this.equipCode = equipCode;
    }

    public String getOriginToolCode() {
        return originToolCode;
    }

    public void setOriginToolCode(String originToolCode) {
        this.originToolCode = originToolCode;
    }

    public String getReplaceToolCode() {
        return replaceToolCode;
    }

    public void setReplaceToolCode(String replaceToolCode) {
        this.replaceToolCode = replaceToolCode;
    }

    public String getReplaceUser() {
        return replaceUser;
    }

    public void setReplaceUser(String replaceUser) {
        this.replaceUser = replaceUser;
    }

    public String getReplaceReason() {
        return replaceReason;
    }

    public void setReplaceReason(String replaceReason) {
        this.replaceReason = replaceReason;
    }

    public Date getReplaceDate() {
        return replaceDate;
    }

    public void setReplaceDate(Date replaceDate) {
        this.replaceDate = replaceDate;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getEquipName() {
        return equipName;
    }

    public void setEquipName(String equipName) {
        this.equipName = equipName;
    }

    public String getToolName() {
        return toolName;
    }

    public void setToolName(String toolName) {
        this.toolName = toolName;
    }

    public String getToolModel() {
        return toolModel;
    }

    public void setToolModel(String toolModel) {
        this.toolModel = toolModel;
    }

    @Override
    protected Serializable pkVal() {
        return this.pkId;
    }

    @Override
    public String toString() {
        return "ToolReplaceRecord{" +
        ", pkId=" + pkId +
        ", originToolCode=" + originToolCode +
        ", replaceToolCode=" + replaceToolCode +
        ", replaceUser=" + replaceUser +
        ", replaceReason=" + replaceReason +
        ", replaceDate=" + replaceDate +
        ", delFlag=" + delFlag +
        ", createUser=" + createUser +
        ", createDate=" + createDate +
        ", updateUser=" + updateUser +
        ", updateDate=" + updateDate +
        ", remark=" + remark +
        "}";
    }
}
